package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author YaoZheng
 * @since 2020-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("农机当季作业详情")
public class FmWorkDetails extends Model<FmWorkDetails> {

    @Override
    protected Serializable pkVal() {
        return id;
    }

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(name = "id", value = "编号")
    private String id;

    /**
     * 一次作业流水号
     */
    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(name = "workSerial", value = "一次作业流水号")
    private String workSerial;

    /**
     * 农具号
     */
    @ApiModelProperty(name = "carId", value = "主机号")
    private String carId;

    /**
     * 农具号
     */
    @ApiModelProperty(name = "toolId", value = "农具号")
    private String toolId;

    /**
     * 作业日期
     */
    @ApiModelProperty(name = "workDate", value = "作业日期")
    private LocalDateTime workDate;

    /**
     * 作业开始时间
     */
    @TableField("work_startTime")
    @ApiModelProperty(name = "workStarttime", value = "作业开始时间")
    private LocalDateTime workStarttime;

    /**
     * 作业结束时间
     */
    @TableField("work_endTime")
    @ApiModelProperty(name = "workEndtime", value = "作业结束时间")
    private LocalDateTime workEndtime;

    /**
     * 平均深度
     */
    @TableField("avgDepth")
    @ApiModelProperty(name = "avgDepth", value = "平均深度")
    private String avgDepth;

    /**
     * 里程
     */
    @ApiModelProperty(name = "distance", value = "里程")
    private String distance;

    /**
     * gps坐标点集合
     */
    @ApiModelProperty(name = "gps", value = "gps坐标点集合")
    private String gps;

    /**
     * 地块名
     */
    @ApiModelProperty(name = "landname", value = "地块名")
    private String landname;

    /**
     * 作业面积(多边形)
     */
    @ApiModelProperty(name = "workLandarea", value = "作业面积(多边形)")
    private String workLandarea;

    /**
     * 提交面积
     */
    @ApiModelProperty(name = "submitLandarea", value = "提交面积")
    private String submitLandarea;

    /**
     * 作业面积(距离)
     */
    @ApiModelProperty(name = "workDistanceArea", value = "作业面积(距离)")
    private String workDistanceArea;

    /**
     * 合格面积
     */
    @ApiModelProperty(name = "qualifiedLandarea", value = "合格面积")
    private String qualifiedLandarea;

    /**
     * 合格率
     */
    @ApiModelProperty(name = "passRate", value = "合格率")
    private String passRate;

    /**
     * 合格率a
     */
    @ApiModelProperty(name = "passRateA", value = "合格率a")
    private String passRateA;

    /**
     * 合格率b
     */
    @ApiModelProperty(name = "passRateB", value = "合格率b")
    private String passRateB;

    /**
     * 重叠率
     */
    @ApiModelProperty(name = "overlapRate", value = "重叠率")
    private String overlapRate;

    /**
     * 幅宽
     */
    @ApiModelProperty(name = "width", value = "幅宽")
    private String width;

    /**
     * 计入补助标识
     */
    @ApiModelProperty(name = "flag", value = "计入补助标识")
    private String flag;

    /**
     * 作业类型
     */
    @ApiModelProperty(name = "type", value = "作业类型")
    private String type;

    @ApiModelProperty(name = "serialNo", value = "序列号")
    private String serialNo;

    @ApiModelProperty(name = "location", value = "作业地域")
    private String location;

    @ApiModelProperty(name = "locationCity", value = "作业城市")
    private String locationCity;

    @ApiModelProperty(name = "locationDistrict", value = "作业区县")
    private String locationDistrict;

    @ApiModelProperty(name = "locationTownship", value = "作业乡镇")
    private String locationTownship;

    /**
     * 用户编号
     */
    @ApiModelProperty(name = "userCode", value = "用户编号")
    private String userCode;

    /**
     * 植保流量
     */
    @ApiModelProperty(name = "totalFlow", value = "植保流量")
    private String totalFlow;

    /**
     * 新旧平台标识
     */
    @ApiModelProperty(name = "identify", value = "新旧平台标识")
    private String identify;

    /**
     * 播种数
     */
    @ApiModelProperty(name = "seed", value = "播种数")
    private String seed;


}
